import http from '@/utils/request'

export default {
  /**
   * 添加工程数据
   * @param params
   * @returns {Promise<AxiosResponse<any>>}
   */
  async upload(params) {
    return await http.post("/api/entry/add", params);
  },
  /**
   * 查询工程数据
   * @returns {Promise<AxiosResponse<any>>}
   */
  async listAll() {
    return await http.get("/api/entry/listAll");
  },
    /**
     * 删除数据
     */
    async deletebyid(params) {
      return await http.delete("/api/entry/delete",params);
    },

  /**
   * 更新数据
   */
   async update(params){
     return await http.put("/api/entry/update",params)
  },

  async selectId(params){
    return await http.post("/api/entry/selectId",params)
  }
}


